package cqie.personal.frame.service;

import cqie.personal.frame.bo.AddModifyDepartmentBO;
import cqie.personal.frame.bo.GetDepartmentBO;
import cqie.personal.frame.entity.DepartmentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import cqie.personal.frame.exception.ValidationFailException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yeeeeee
 * @since 2021-09-27
 */
public interface DepartmentInfoService extends IService<DepartmentInfo> {

    boolean addDepartment(AddModifyDepartmentBO addModifyDepartmentBO) throws ValidationFailException;

    boolean modifyDepartment(AddModifyDepartmentBO addModifyDepartmentBO) throws  ValidationFailException;

    List<DepartmentInfo> getDepartment(GetDepartmentBO departmentBO) throws ValidationFailException;
}
